package com.onluy.sysman.param;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

public class RandomCodeParam {


    @ApiModelProperty(value="随机码" )
    @NotNull(message = "随机码不能为空！")
    private String randCode;

    @ApiModelProperty(value="电话号码" )
    @NotNull(message = "电话号码不能为空！")
    private String phone;


    @ApiModelProperty(value="验证码类型，0：纯数字 ，1：数字字母" )
    @NotNull(message = "验证码长度不能为空！")
    private int codetype;


    @ApiModelProperty(value="验证码长度" )
    @NotNull(message = "验证码长度不能为空！")
    @Max( value = 20)
    @Min(value = 4)
    private int codelength;


    public String getRandCode() {
        return randCode;
    }

    public void setRandCode(String randCode) {
        this.randCode = randCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getCodetype() {
        return codetype;
    }

    public void setCodetype(int codetype) {
        this.codetype = codetype;
    }

    public int getCodelength() {
        return codelength;
    }

    public void setCodelength(int codelength) {
        this.codelength = codelength;
    }
}
